<?php
namespace app\publics\controller;
use app\BaseController;
use app\card\service\UserService;
use app\massage\model\ChannelQr;
use app\massage\model\SendMsgConfig;
use think\facade\Db;
use think\facade\Log;
use think\facade\Request;

class HttpAsyn extends BaseController {


    public function message(){


        $param = Request::param();

        $data = json_decode($param['message'],true) ;

      //  echo serialize($data) ;exit;
        //try{
        switch ( $action = $data['action']  )
        {
            //发送消息服务通知
            case 'channelQr':

                $model = new ChannelQr();

                $model->batchChannelQrImgInit($data['uniacid']);

                break;
            case 'orderServiceNotice':

                $model = new SendMsgConfig();

                $model->orderServiceNotice($data['uniacid']);

                break;

//            case 'test':
//
//                sleep(5);
//
//                break;


        }
        echo 'message ok ';

    }

}
